import meetingIcon from "@/img/icon-vol-meeting.png";
import meetingIconOn from "@/img/icon-vol-meeting-on.png";

import speakerIcon from "@/img/icon-vol-speaker.png";
import speakerIconOn from "@/img/icon-vol-speaker-on.png";

import userIcon from "@/img/icon-vol-user.png";
import userIconOn from "@/img/icon-vol-user-on.png";

export const children = [
  {
    path: "/vol/meeting",
    name: "volMeeting",
    component: () => import("@/views/meeting/list/index.vue"),
    meta: {
      title: "我的会议",
      tabTitle: "会议",
      iconOn: meetingIconOn,
      icon: meetingIcon,
      isTab: true,
      showTab: true,
    },
  },
  {
    path: "/vol/register-result",
    name: "registerResult",
    meta: {
      title: "注册成功",
      returnAction: false,
    },
    component: () => import("@/views/speaker/register-result.vue"),
  },
  {
    path: "/vol/speaker",
    name: "volSpeaker",
    component: () => import("@/views/speaker/index.vue"),
    meta: {
      title: "讲者管理",
      tabTitle: "讲者",
      iconOn: speakerIconOn,
      icon: speakerIcon,
      isTab: true,
      showTab: true,
    },
  },
  {
    path: "/vol/user",
    name: "volUser",
    component: () => import("@/views/user/index.vue"),
    meta: {
      title: "个人中心",
      tabTitle: "我的",
      iconOn: userIconOn,
      icon: userIcon,
      isTab: true,
      showTab: true,
    },
  },
  {
    path: "/vol/apply-meeting/:id?",
    name: "volApplyMeeting",
    meta: {
      title: "申请会议",
      returnAction: true,
    },
    component: () => import("@/views/meeting/apply2/index.vue"),
  },
  {
    path: "/vol/apply2-meeting/:id?",
    name: "volApplyMeetingTwo",
    meta: {
      title: "申请会议",
      returnAction: true,
    },
    component: () => import("@/views/meeting/apply2/index.vue"),
  },
  {
    path: "/vol/settle-meeting/:id",
    name: "volSettleMeeting",
    meta: {
      title: "会议结算",
      returnAction: true,
    },
    component: () => import("@/views/meeting/settle/index.vue"),
  },
  {
    path: "/vol/detail-meeting/:id",
    name: "volDetailMeeting",
    meta: {
      title: "会议详情",
      returnAction: true,
    },
    component: () => import("@/views/meeting/detail/index.vue"),
  },
  {
    path: "/vol/detail-speaker/:id?",
    name: "volDetailSpeaker",
    meta: {
      title: "讲者详情",
      returnAction: true,
    },
    component: () => import("@/views/speaker/detail.vue"),
  },
  {
    path: "/vol/detail-speaker?type=add",
    name: "addSpeaker",
    meta: {
      title: "讲者注册",
      returnAction: false,
    },
    component: () => import("@/views/speaker/detail.vue"),
  },
  {
    path: "/poster/:id",
    name: "poster",
    meta: {
      title: "会议海报",
      returnAction: false,
    },
    component: () => import("@/views/meeting/poster.vue"),
  },
  {
    path: "/live/:id",
    name: "live",
    meta: {
      title: "会议直播",
    },
    component: () => import("@/views/meeting/live.vue"),
  },
  {
    path: "/vol/attendance-list",
    name: "attendanceList",
    meta: {
      title: "参会人员",
	  returnAction: true,
    },
    component: () => import("@/views/meeting/detail/attendanceList.vue"),
  },
  {
    path: "/vol/watch-detail-list",
    name: "watchDetailList",
    meta: {
      title: "观看明细",
	  returnAction: true,
    },
    component: () => import("@/views/meeting/detail/watchDetailList.vue"),
  },
];

export default {
  path: "/vol",
  name: "vol",
  redirect: children[0].path,
  component: () => import("@/layout/index.vue"),
  children,
};
